package com.party.web.web.dto.output.member;

import com.party.core.model.commune.CMoment;
import com.party.core.model.commune.CNotebook;
import org.apache.commons.beanutils.BeanUtils;

import java.lang.reflect.InvocationTargetException;

/**
 * @program: party
 * @description: 笔记本输出
 * @author: Hua Qunhao
 * @create: 2019-12-26 11:08
 **/
public class CNotebookOutput extends CNotebook {
    //所属分社
    private String memberGroupName;

    //所属者
    private String memberGroupUserName;

    //笔记本类型数量
    private Integer notebookTypeNum;
    //素材数量
    private Integer materialTypeNum;

    public String getMemberGroupUserName() {
        return memberGroupUserName;
    }

    public void setMemberGroupUserName(String memberGroupUserName) {
        this.memberGroupUserName = memberGroupUserName;
    }

    public String getMemberGroupName() {
        return memberGroupName;
    }

    public void setMemberGroupName(String memberGroupName) {
        this.memberGroupName = memberGroupName;
    }


    public Integer getNotebookTypeNum() {
        return notebookTypeNum;
    }

    public void setNotebookTypeNum(Integer notebookTypeNum) {
        this.notebookTypeNum = notebookTypeNum;
    }

    public Integer getMaterialTypeNum() {
        return materialTypeNum;
    }

    public void setMaterialTypeNum(Integer materialTypeNum) {
        this.materialTypeNum = materialTypeNum;
    }

    public static CNotebookOutput transform(CNotebook input) {
        CNotebookOutput output = new CNotebookOutput();
        try {
            BeanUtils.copyProperties(output, input);
        } catch (IllegalAccessException | InvocationTargetException e) {
            e.printStackTrace();
        }
        return output;
    }
}
